package cn.zyzpp.dao;

import cn.zyzpp.entity.job.UserJob;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserJobDao extends JpaRepository<UserJob,Integer> {
    UserJob findAllByUidAndJid(int uid, int jid);

    List<UserJob> findAllByUid(int uid);

    List<UserJob> findAllByJid(int jid);

    int countByJid(int jid);

    void deleteAllByUidAndJid(int uid, int jid);
}
